package net.homeip.jcperera.nu.security.credential;

import java.io.Serializable;

import javax.inject.Named;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * Identification Tag, for Extensible authentication
 * 
 * @name Identification Tag class
 * @author julio.c.perera@gmail.com
 * @application nu
 * @since 0.1.0.0
 */

@Named(IdentificationTag.componentName)
@MappedSuperclass
public class IdentificationTag implements Serializable
{
    // Required to implement Serializable interface
    private static final long  serialVersionUID = -3967554784096212514L;

    // CoreBase properties, for easy use from other components, as well as logging
    public static final int    runtimeLevel     = 2;
    public static final String moduleName       = "security";
    public static final String componentName    = "nu_security_credential_identification_tag";

    private String             value;

    /**
     * Gets the value of this Identification Tag as String
     */
    @Basic
    @Column(name = "IDTAG")
    public String getValue()
    {
        return this.value;
    }

    /**
     * Gets the value of this Identification Tag as String
     */
    @Override
    public String toString()
    {
        return this.value;
    }

    /**
     * @param newValue
     */
    public void setValue(String newValue)
    {
        this.value = newValue;
    };
}